package ch.mustaffah.aoide.ext.player;



import org.jfugue.Pattern;
import org.jfugue.Player;

public class JFuguePlayer implements Runnable,GenericPlayer{
	private Player player;
	private Pattern pattern;

	public void play() {
		player = new Player();
		player.play(pattern);
	}
	
	public void stop() {
		try{
			player.stop();
		}catch (Exception e){
			System.out.println("can't stop player: "+ e.getMessage() );
		}
	}

	public void run() {
	}

	public void setPlayPattern(Pattern pattern) {
		this.pattern=pattern;
	}

}
